package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.StudioRelatedFormEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;

/**
 * 工作室相关申请表对象 studio_related_form
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("工作室相关申请表-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudioRelatedFormUpdateParam extends BeanCovert<StudioRelatedFormEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("是否已经加入工作室")
    @Size(max = 2, message = "是否已经加入工作室长度超过{max}", groups = {Add.class, Update.class})
    private String alreadyJoined;

    @ApiModelProperty("申请工作室ID")
    private Long studioId;

    @ApiModelProperty("申请开通的服务项")
    @Size(max = 255, message = "申请开通的服务项长度超过{max}", groups = {Add.class, Update.class})
    private String serviceItem;

    @ApiModelProperty("申请医生ID")
    private Long doctorId;

    @ApiModelProperty("方式(01:被邀请；02:申请)")
    @Size(max = 2, message = "方式长度超过{max}", groups = {Add.class, Update.class})
    private String joinType;

    @ApiModelProperty("审核状态")
    @Size(max = 2, message = "审核状态长度超过{max}", groups = {Add.class, Update.class})
    private String state;

    @ApiModelProperty("甲方签名(工作室所属医生)")
    private String partaSign;

    @ApiModelProperty("乙方签名")
    private String partbSign;

    @ApiModelProperty("null")
    @Size(max = 255, message = "null长度超过{max}", groups = {Add.class, Update.class})
    private String proportion;

    @ApiModelProperty("审核意见")
    @Size(max = 255, message = "审核意见长度超过{max}", groups = {Add.class, Update.class})
    private String reviewOpinion;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("开通的价钱")
    @Size(max = 255, message = "开通的价钱长度超过{max}", groups = {Add.class, Update.class})
    private String price;

}
